﻿using MediatR;
using S.Common.ApiResult;
using S.Weaning.Domain;
using S.Weaning.Domain.Dto;

namespace S.Weaning.Read.ApI.Application.Command
{
    public class MaternalWeaningCommand
    {
        /// <summary>
        /// 种母断奶显示
        /// </summary>
        public class ShowMaternalWeaning : IRequest<ApiResult<List<MaternalWeaningDto>>>
        {

            public ShowMaternalWeaning(string ddate, string ear, string build, int userid, int page, int size)
            {
                this.ddate = ddate;
                this.ear = ear;
                this.build = build;
                this.userid = userid;
                this.page = page;
                this.size = size;
            }
            public string ddate { get; set; }
            public string ear { get; set; }
            public string build { get; set; }
            public int userid { get; set; }
            public int page { get; set; }
            public int size { get; set; }
        }
        /// <summary>
        /// 反填种母断奶
        /// </summary>
        public class MaternalByIdCommand: IRequest<MaternalWeaningModel>
        {
            public MaternalByIdCommand(int id)
            {
                this.id = id;
            }
            public int id { get; set; }
        }

    }
}
